package cn.tedu.d20_reflection;
/*本类用于测试反射先准备的物料类*/
public class Student {

    public String name;
    public int age;

    public Student(){

    }

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void tell(){
        System.out.println("我有一个好东西");
    }

    //重写toString 为了方便查看对象的属性值
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

}
